<h1>Inventario</h1>
<a href="<?php echo url_for('inventario/create') ?>">Agregar Nuevo Producto</a>
<table class="lista">
  <thead>
    <tr>
      <th>Id</th>
      <th>Img</th>
      <th>Cod</th>
      <th>Descripcion</th>
      <th>Prov</th>
      
      <th>Cat</th>
      
      <th>%Desc</th>
      
      <th>Exst</th>
      <th>Cost</th>
      <th>Pre</th>
      <th>Clr</th>
      <th>Talla</th>
      <th>Rer</th>
      <th>TE</th>
      <th>FC</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($articuloList->getResults() as $articulo): ?>
    <tr>
      <td><a href="<?php echo url_for('inventario/edit?id='.$articulo->getId()) ?>"><?php echo $articulo->getId() ?></a></td>
      <td><?php echo image_tag('fotos/'.$articulo->getFoto() ) ?></td>
      <td><?php echo $articulo->getCodigo() ?></td>
      <td><?php echo $articulo->getDescripcion() ?></td>
      <td><?php echo $articulo->getProveedorId() ?></td>
      <td><?php echo $articulo->getDescuentoId() ?></td>
      <td><?php echo $articulo->getCategoriaId() ?></td>
      <td><?php echo $articulo->getExistencia() ?></td>
      <td><?php echo $articulo->getCosto() ?></td>
      <td><?php echo $articulo->getPrecio() ?></td>
      <td><?php echo $articulo->getColor() ?></td>
      <td><?php echo $articulo->getTalla() ?></td>
      <td><?php echo $articulo->getReorden() ?></td>
      <td><?php echo $articulo->getTiempoEntrega() ?></td>
      <td><?php echo $articulo->getFechaCompra() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>
<?php echo $articuloList->getNbResults() ?> Productos Listados
Página <?php if ( $articuloList->haveToPaginate() ): ?>
	        <?php echo link_to('&laquo', 'inventario/list?page='.$articuloList->getFirstPage()) ?>
	        <?php echo link_to('&lt;', 'inventario/list?page='.$articuloList->getPreviousPage()) ?>
				  <?php $links = $articuloList->getLinks(); foreach ($links as $page): ?>
				    <?php echo ($page == $articuloList->getPage()) ? $page : link_to($page, 'inventario/list?page='.$page) ?>
				    <?php if ($page != $articuloList->getCurrentMaxLink()): ?> - <?php endif ?>
				  <?php endforeach ?>
				  <?php echo link_to('&gt;', 'inventario/list?page='.$articuloList->getNextPage()) ?>
				  <?php echo link_to('&raquo;', 'inventario/list?page='.$articuloList->getLastPage()) ?>        
       <?  endif ?>

